-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First Release #1
Conversation
This already needs refactoring to work from the inside-out:
|
Well crap. This was coded in isolation based off of source, so only running it first works: module: {
loaders: [
{
test: /\.js$/,
loader: "babel",
query: {
babelrc: false,
cacheDirectory: true,
passPerPreset: true,
presets: [
{
plugins: [
"syntax-jsx",
"../src/plugin.js",
],
},
"es2015",
"stage-0",
"react",
],
},
exclude: /node_modules/,
},
], It needs to be able to be ran after This...will significantly make it more difficult to tell what's a functional component and what's not... |
It's working!! Next steps:
|
F*. Major blocker in an internal project: ERROR in ./src/routes/index.js
Module build failed: ReferenceError: [BABEL] /Users/Eric/Projects/highereducation/platform/src/routes/index.js: Unknown option: base.passPerPreset
at Logger.error (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-core/lib/transformation/file/logger.js:41:11)
at OptionManager.mergeOptions (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-core/lib/transformation/file/options/option-manager.js:262:18)
at OptionManager.init (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-core/lib/transformation/file/options/option-manager.js:416:10)
at File.initOptions (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-core/lib/transformation/file/index.js:191:75)
at new File (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-core/lib/transformation/file/index.js:122:22)
at Pipeline.transform (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
at transpile (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-loader/index.js:14:22)
at /Users/Eric/Projects/highereducation/platform/src/node_modules/babel-loader/lib/fs-cache.js:145:18
at ReadFileContext.callback (/Users/Eric/Projects/highereducation/platform/src/node_modules/babel-loader/lib/fs-cache.js:28:23)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:324:13)
@ ./src/client.js 21:14-33 I researched this for an hour and the best I could find out is that somewhere somehow there are runtime dependency issues (of course) and old versions are still being used. No idea how to fix this. Maybe instead of relying on That way this can run first & control the output rather than competing. |
Ok, I couldn't get this working in a local project for the life of me. So, instead, I'm going to base functionality off of the example. If that works & can be a guide then I consider this a success. |
👍 |
1 similar comment
👍 |
Because gaearon/babel-plugin-react-transform#85 has hit a snag (largely self-imposed, IMO, and tools of this nature require understanding the caveats of improved functionality), if this feature gets delayed further, some next steps would be:
Improve new & improved workflow! |
Merging just to close. |
No description provided.