Skip to content

Commit

Permalink
feat: webpack there and back again
Browse files Browse the repository at this point in the history
  • Loading branch information
mattc41190 committed May 23, 2021
1 parent dc019d6 commit 17cf8a1
Show file tree
Hide file tree
Showing 23 changed files with 3,848 additions and 2,520 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ build_python: check_python

.PHONY: format_js
format_js:
npm run standard
npm run format-javascript

.PHONY: check_js
check_js: format_js
echo "nope"

.PHONY: run_dev_ui
run_dev_ui:
npm run webpack-dev
npm run wp-watch

.PHONY: build_js
build_js: check_js
echo "nope"
npm run wp-build

# UNIVERSAL TARGETS

Expand Down
9 changes: 9 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Notes on Babel Config:
// @babel/preset-env is responsible for making javascript browser compatible
// @babel/preset-react is responsible for transpiling JSX to javascript
// runtime: "automatic" -- Means you don't need to import default React export
// -- shrug seems like more magic to me

module.exports = {
presets: ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }]]
}
Loading

0 comments on commit 17cf8a1

Please sign in to comment.